import { markRaw } from 'vue';
import { RouteRecordRaw } from 'vue-router';
import Layout from '@/layout/index.vue';

const pageRouter: Array<RouteRecordRaw> = [
  {
    name: 'basic-data',
    path: '/basicdata',
    component: markRaw(Layout),
    redirect: 'noredirect',
    meta: { title: '基础数据', index: 2 },
    children: [
      {
        name: 'attribute-template',
        path: 'attrtemplate',
        component: () => import(/* webpackChunkName: "basicdata" */ '@/views/basicData/AttributeTemplate.vue'),
        meta: { title: '属性模版', activeMenu: '/basicdata' },
      },
      {
        name: 'channel-dictionary',
        path: 'channeldictionary',
        component: () => import(/* webpackChunkName: "basicdata" */ '@/views/basicData/ChannelDictionary.vue'),
        meta: { title: '渠道字典', activeMenu: '/basicdata' },
      },
    ],
  },
];

export default pageRouter;
